package models

import "github.com/astaxie/beego/orm"

type City struct {
	Id               int
	CityName         string        `ht:"list;search;name(读书会名称)"`
	CityPosition     string        `ht:"list;search;name(城市位置)"`
	CityOriginName 	 string 	`ht:"name(地区名称)"`
	Virtural	 int		`ht:"name(是否虚拟读书会)"`
	HotPoint         int        `ht:"hide"`
	//extra fileds(reseved)
	FatherCity       int        `ht:"hide"`
	ManageAdmin	 int 	`ht:"name(所属管理员)" orm:"default(0)"`
	CityExtraInt641  int64        `ht:"hide"`
	CityExtraString1 string        `ht:"hide"`
	CityExtraString2 string        `orm:"size(1000)" ht:"hide"`
}

func init() {
	orm.RegisterModel(new(City))
}
func (*City)TableName() string {
	return "city"
}
func (*City) FN_Id() string {
	return "Id"
}
func (*City) FN_CityName() string {
	return "CityName"
}
func (*City) FN_HotPoint() string {
	return "HotPoint"
}
func (*City) FN_FatherCity() string {
	return "FatherCity"
}
func (*City) FN_CityExtraInt641() string {
	return "CityExtraInt641"
}
func (*City) FN_CityExtraString1() string {
	return "CityExtraString1"
}
func (*City) FN_CityExtraString2() string {
	return "CityExtraString2"
}
func (*City) FN_ManageAdmin() string {
	return "ManageAdmin"
}